package showcase

import (
	"github.com/templui/templui/internal/components/timepicker"
	"time"
)

templ TimePickerMinMax() {
	{{
		// Create min and max times for business hours (9 AM to 5 PM)
		now := time.Now()
		minTime := time.Date(now.Year(), now.Month(), now.Day(), 9, 0, 0, 0, now.Location())
		maxTime := time.Date(now.Year(), now.Month(), now.Day(), 17, 0, 0, 0, now.Location())
	}}
	<div class="w-full max-w-sm">
		@timepicker.TimePicker(timepicker.Props{
			MinTime:     minTime,
			MaxTime:     maxTime,
			Step:        30,
			Placeholder: "Business hours (9AM-5PM)",
		})
	</div>
}
